package com.bml.architect.framework.protocol.dubbo;

import com.bml.architect.framework.Address;
import com.bml.architect.framework.Invocation;
import com.bml.architect.framework.protocol.Protocol;

public class DubboProtocol implements Protocol {
    @Override
    public void start(Address address) {
        NettyServer server = new NettyServer();
        server.start(address);
    }

    @Override
    public String send(Address address, Invocation invocation) {
        NettyClient client = new NettyClient();
        //client.start(address);
        return client.send(address, invocation);
    }
}
